//
//  TempViewController.swift
//  0110-weibo
//
//  Created by 鲍志刚 on 16/1/19.
//  Copyright © 2016年 zhongye. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {
    
    @objc private func push() {
        
       let temp = TempViewController()
        
        navigationController?.pushViewController(temp, animated: true)
        
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //手写代码的视图控制器的背景颜色 是 clearcolor

        view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一页", style: .Plain, target: self, action: "push")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

 
}
